package com.yituo.mjworld.core.web.core;

/**
 * service层的处理结果
 */
public class Result {
  public boolean result;
  public Object msg;

  public Result(boolean result, Object msg) {
    this.result = result;
    this.msg = msg;
  }

  public Result() {
  }

  public boolean getResult() {
    return result;
  }

  public Result setResult(boolean result) {
    this.result = result;
    return this;
  }

  public Object getMsg() {
    return msg;
  }

  public Result setMsg(Object msg) {
    this.msg = msg;
    return this;
  }

  @Override
  public String toString() {
    return "Result{" +
        "result=" + result +
        ", msg=" + msg +
        '}';
  }
}
